package test;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.model.Student;

import java.util.Map;

/**
 * Created by ME on 2017/11/12.
 */
public class JacksonTester {
    public static void main(String[] args) {
        ObjectMapper mapper = new ObjectMapper();
        Student student = new Student();
        student.setName("GongZi");
        student.setAge(18);
        Map<String, Object> map = mapper.convertValue(student, Map.class);
        System.out.println(map.get("age"));
        map.put("phone", 18856313);
        map.entrySet().stream().forEach(o -> System.out.println(o.getValue()));
        int i = 1111111111;
        System.out.println(Math.pow(2, 32));
    }


}
